/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package divasoft;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.JApplet;
import javax.swing.JFrame;

/**
 *
 * @author 4ui
 */
public class Main extends JApplet{
    
    public void init() {
        
    }
    public static void main(String[] args) {
       JFrame frame = new JFrame("AvangardDoor's");
       Main m = new Main();
       m.init();
       frame.add(m);
       frame.setLocation(200, 20);
       frame.setSize(750, 600);
       frame.addWindowListener(null);
       frame.addWindowListener(new WindowListener() {

            public void windowOpened(WindowEvent e) {

            }

            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }

            public void windowClosed(WindowEvent e) {

            }

            public void windowIconified(WindowEvent e) {

            }

            public void windowDeiconified(WindowEvent e) {

            }

            public void windowActivated(WindowEvent e) {

            }

            public void windowDeactivated(WindowEvent e) {

            }
        });
       frame.setVisible(true);
    }
    
}
